<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤2：创建文件集">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="Files-0010.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="Files-0012">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤2：创建文件集</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="Files-0012"></a><a name="Files-0012"></a>
  <h1 class="topictitle1">步骤2：创建文件集</h1>
  <div>
   <p>执行文件集保护前请先创建文件集，文件集包括主机下的多个文件或目录。支持为单个主机创建文件集或通过模板批量为多个主机创建文件集。</p>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>选择<span class="uicontrol" id="Files-0012__zh-cn_topic_0000002199964685_uicontrol1535113494115">“<span id="Files-0012__zh-cn_topic_0000002199964685_text735434144116">保护</span> &gt; 文件系统 &gt; 文件集”</span>。</span><p></p>
      <div class="note" id="Files-0012__zh-cn_topic_0000002199964685_note12707194325517">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p id="Files-0012__zh-cn_topic_0000002199964685_p370854395513">对于1.5.0版本，请选择<span class="uicontrol" id="Files-0012__zh-cn_topic_0000002199964685_uicontrol117931445568">“<span id="Files-0012__zh-cn_topic_0000002199964685_text197938425615">保护</span> &gt; 裸机 &gt; 文件集”</span>。</p>
       </div>
      </div> <p></p></li>
     <li><span>单击<span class="uicontrol">“<span>创建</span>”</span>。</span></li>
     <li><span>选择文件集创建模式：<span class="uicontrol">“<span>自定义</span>”</span>或<span class="uicontrol">“<span>模板</span>”</span>。</span><p></p>
      <ul>
       <li>选择文件集创建模式为<span class="uicontrol">“<span>自定义</span>”</span>，为单个主机创建文件集。<p>相关参数说明如<a href="#Files-0012__zh-cn_topic_0000001218047555_table6268122683816">表1</a>所示。</p>
        <div class="tablenoborder">
         <a name="Files-0012__zh-cn_topic_0000001218047555_table6268122683816"></a><a name="zh-cn_topic_0000001218047555_table6268122683816"></a>
         <table cellpadding="4" cellspacing="0" summary="" id="Files-0012__zh-cn_topic_0000001218047555_table6268122683816" frame="border" border="1" rules="all">
          <caption>
           <b>表1 </b>创建文件集参数说明
          </caption>
          <colgroup>
           <col style="width:11.450000000000001%">
           <col style="width:10.879999999999999%">
           <col style="width:77.66999999999999%">
          </colgroup>
          <thead align="left">
           <tr>
            <th align="left" class="cellrowborder" colspan="2" valign="top" id="mcps1.3.2.2.3.2.1.1.3.2.4.1.1"><p>参数</p></th>
            <th align="left" class="cellrowborder" valign="top" id="mcps1.3.2.2.3.2.1.1.3.2.4.1.2"><p>说明</p></th>
           </tr>
          </thead>
          <tbody>
           <tr>
            <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>名称</p></td>
            <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.2 "><p>自定义文件集名称。</p></td>
           </tr>
           <tr>
            <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>客户端</p>
             <div class="note">
              <span class="notetitle"> 说明： </span>
              <div class="notebody">
               <p>对于1.5.0版本，该参数名称为“选择主机”；对于1.6.0及后续版本，该参数名称为“客户端”。</p>
              </div>
             </div></td>
            <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.2 "><p>选择要进行文件集保护的客户端。</p></td>
           </tr>
           <tr>
            <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>操作系统备份</p>
             <div class="note">
              <span class="notetitle"> 说明： </span>
              <div class="notebody">
               <p>该参数仅在1.6.0及后续版本展示，且仅适用于Linux操作系统。</p>
              </div>
             </div></td>
            <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.2 "><p><span>该功能开启后，仅备份操作系统数据，如需备份业务数据，请选择对应文件。</span></p>
             <div class="note">
              <span class="notetitle"> 说明： </span>
              <div class="notebody">
               <p>开启操作系统备份后，系统将会默认备份如下目录及其子目录的文件：“/boot”、“/etc”、“/root”、“/var”、“/usr”、“/bin”、“/sbin”、“/lib”、“/lib64”。</p>
              </div>
             </div></td>
           </tr>
           <tr>
            <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>选择文件</p></td>
            <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.2 "><p>选择要保护的文件。</p> <p>最多支持选择64个文件或目录。</p> <p>展开数据源后可通过搜索文件名称选择相应文件。</p>
             <div class="note">
              <span class="notetitle"> 说明： </span>
              <div class="notebody">
               <p>不支持备份客户端所在目录（例如Windows操作系统“C:\DataBackup”和非Windows操作系统“/opt/DataBackup”）。</p>
              </div>
             </div></td>
           </tr>
           <tr>
            <td class="cellrowborder" rowspan="2" valign="top" width="11.450000000000001%" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>过滤规则<sup>a</sup></p></td>
            <td class="cellrowborder" valign="top" width="10.879999999999999%" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>文件</p></td>
            <td class="cellrowborder" valign="top" width="77.66999999999999%" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.2 "><p>选择要包含或排除的文件，支持过滤的文件类型，请参考<a href="Files-0012.html#Files-0012__zh-cn_topic_0000001218047555_section875992475510">支持过滤的文件类型</a>。</p> <p>过滤文件时，按照如下规则配置：</p>
             <ul>
              <li>输入文件的完整路径。</li>
              <li>配置多个路径时，单击<span class="uicontrol">“<span>保存</span>”</span>后再填写新的路径。</li>
              <li>路径中可包含通配符<strong>*</strong>。</li>
             </ul></td>
           </tr>
           <tr>
            <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>目录</p></td>
            <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 "><p>选择要包含或排除的目录，单击<span class="uicontrol">“<span>保存</span>”</span>。</p> <p>过滤目录时，按照如下规则配置：</p>
             <ul>
              <li>输入目录的完整路径。</li>
              <li>配置多个路径时，单击<span class="uicontrol">“<span>保存</span>”</span>后再填写新的路径。</li>
              <li>路径中可包含通配符<strong>*</strong>。</li>
             </ul></td>
           </tr>
           <tr>
            <td class="cellrowborder" colspan="3" valign="top" headers="mcps1.3.2.2.3.2.1.1.3.2.4.1.1 mcps1.3.2.2.3.2.1.1.3.2.4.1.2 ">
             <div class="p">
              a：开启操作系统备份后，需谨慎添加过滤规则，否则可能会影响操作系统恢复：
              <ul>
               <li>添加“排除”过滤规则时，请勿排除系统目录下默认创建的文件或目录。</li>
               <li>添加“仅包含”过滤规则时，添加的目录必须包含所有系统目录：/boot，/etc，/root，/var，/usr，/bin，/sbin，/lib，/lib64。</li>
              </ul>
             </div></td>
           </tr>
          </tbody>
         </table>
        </div>
        <div class="note">
         <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
         <div class="notebody">
          <div class="p" id="Files-0012__files-0011_zh-cn_topic_0000001172683312_p1162952215820">
           设置多个过滤规则时，可以通过以下原则判断最终生效结果：
           <ul id="Files-0012__files-0011_zh-cn_topic_0000001172683312_ul86299228580">
            <li id="Files-0012__files-0011_zh-cn_topic_0000001172683312_li15526150172217">仅存在包含条件时，多个包含条件之间是<span class="uicontrol" id="Files-0012__files-0011_zh-cn_topic_0000001172683312_uicontrol1150415398234">“并”</span>的关系，即筛选出来的结果是所选条件的并集。</li>
            <li id="Files-0012__files-0011_zh-cn_topic_0000001172683312_li186794317268">仅存在排除条件时，多个排除条件之间是<span class="uicontrol" id="Files-0012__files-0011_zh-cn_topic_0000001172683312_uicontrol1027319440268">“并”</span>的关系，即筛选出来的结果是所选条件的并集。</li>
            <li id="Files-0012__files-0011_zh-cn_topic_0000001172683312_li1862915229582">既有包含又有排除条件时，需在包含条件中判定排除。</li>
           </ul>
          </div>
         </div>
        </div></li>
       <li>选择文件集创建模式为<span class="uicontrol">“<span>模板</span>”</span>，批量为多个主机创建文件集。<p>通过<span class="uicontrol">“<span>关联模板</span>”</span>方式批量创建的文件集，文件集命名规则为：模板名称_主机IP_时间戳后四位，如：fileset_192_168_10_10_8981。</p> <p>相关参数说明如<a href="#Files-0012__zh-cn_topic_0000001218047555_table16215174018419">表2</a>所示。</p>
        <div class="tablenoborder">
         <a name="Files-0012__zh-cn_topic_0000001218047555_table16215174018419"></a><a name="zh-cn_topic_0000001218047555_table16215174018419"></a>
         <table cellpadding="4" cellspacing="0" summary="" id="Files-0012__zh-cn_topic_0000001218047555_table16215174018419" frame="border" border="1" rules="all">
          <caption>
           <b>表2 </b>通过模板创建文件集
          </caption>
          <colgroup>
           <col style="width:34.27%">
           <col style="width:65.73%">
          </colgroup>
          <thead align="left">
           <tr>
            <th align="left" class="cellrowborder" valign="top" width="34.27%" id="mcps1.3.2.2.3.2.1.2.4.2.3.1.1"><p>参数</p></th>
            <th align="left" class="cellrowborder" valign="top" width="65.73%" id="mcps1.3.2.2.3.2.1.2.4.2.3.1.2"><p>说明</p></th>
           </tr>
          </thead>
          <tbody>
           <tr>
            <td class="cellrowborder" valign="top" width="34.27%" headers="mcps1.3.2.2.3.2.1.2.4.2.3.1.1 "><p><span>模板</span></p></td>
            <td class="cellrowborder" valign="top" width="65.73%" headers="mcps1.3.2.2.3.2.1.2.4.2.3.1.2 "><p>选择<a href="Files-0011.html">步骤1：（可选）创建文件集模板</a>中创建的模板。</p></td>
           </tr>
           <tr>
            <td class="cellrowborder" valign="top" width="34.27%" headers="mcps1.3.2.2.3.2.1.2.4.2.3.1.1 "><p><span>主机</span></p></td>
            <td class="cellrowborder" valign="top" width="65.73%" headers="mcps1.3.2.2.3.2.1.2.4.2.3.1.2 "><p>选择要进行文件集保护的主机。</p> <p>单次最多支持选择64个主机。</p>
             <div class="note">
              <span class="notetitle"> 说明： </span>
              <div class="notebody">
               <p>请确保所选主机上存在模板中设置的文件路径，否则将无法备份。</p>
              </div>
             </div></td>
           </tr>
           <tr>
            <td class="cellrowborder" valign="top" width="34.27%" headers="mcps1.3.2.2.3.2.1.2.4.2.3.1.1 "><p><span>关联SLA</span></p></td>
            <td class="cellrowborder" valign="top" width="65.73%" headers="mcps1.3.2.2.3.2.1.2.4.2.3.1.2 "><p>为文件集关联SLA。</p>
             <ul>
              <li>您可以在此处为要保护的文件集关联SLA，创建文件集后，系统将周期性对文件集执行保护，文件集保护高级参数具体请参考<a href="Files-0016.html">步骤6：执行文件集备份</a>的<a href="Files-0016.html#Files-0016__li164660725814">4</a>。</li>
              <li>您也可以在后续操作再为其关联SLA。</li>
             </ul> <p>创建SLA的具体参数说明可参考<a href="Files-0015.html">步骤5：创建备份SLA</a>。</p></td>
           </tr>
          </tbody>
         </table>
        </div></li>
      </ul> <p></p></li>
     <li><span>单击<span class="uicontrol">“<span>确定</span>”</span>。</span></li>
    </ol>
   </div>
   <div class="section" id="Files-0012__zh-cn_topic_0000001218047555_section875992475510">
    <a name="Files-0012__zh-cn_topic_0000001218047555_section875992475510"></a><a name="zh-cn_topic_0000001218047555_section875992475510"></a>
    <h4 class="sectiontitle">支持过滤的文件类型</h4>
    <p>创建文件集时，可以指定文件类型过滤文件，支持过滤的文件类型如<a href="#Files-0012__zh-cn_topic_0000001218047555_table10110114810196">表3</a>所示。</p>
    <div class="tablenoborder">
     <a name="Files-0012__zh-cn_topic_0000001218047555_table10110114810196"></a><a name="zh-cn_topic_0000001218047555_table10110114810196"></a>
     <table cellpadding="4" cellspacing="0" summary="" id="Files-0012__zh-cn_topic_0000001218047555_table10110114810196" frame="border" border="1" rules="all">
      <caption>
       <b>表3 </b>支持的文件格式
      </caption>
      <colgroup>
       <col style="width:28.28%">
       <col style="width:71.72%">
      </colgroup>
      <thead align="left">
       <tr>
        <th align="left" class="cellrowborder" valign="top" width="28.28%" id="mcps1.3.3.3.2.3.1.1"><p>文件类型</p></th>
        <th align="left" class="cellrowborder" valign="top" width="71.72%" id="mcps1.3.3.3.2.3.1.2"><p>支持的格式</p></th>
       </tr>
      </thead>
      <tbody>
       <tr>
        <td class="cellrowborder" valign="top" width="28.28%" headers="mcps1.3.3.3.2.3.1.1 "><p><span>Microsoft Office文件</span></p></td>
        <td class="cellrowborder" valign="top" width="71.72%" headers="mcps1.3.3.3.2.3.1.2 "><p>*.doc, *.docx, *.dot, *.docm, *.dotm, *.dotx, *.odt, *.rtf, *.htm, *.html, *.mht, *.mhtml, *.txt, *.wps, *.xml, *.xps, *.pot, *.potm, *.potx, *.ppa, *.ppam, *.pps, *.ppsm, *.ppsx</p></td>
       </tr>
       <tr>
        <td class="cellrowborder" valign="top" width="28.28%" headers="mcps1.3.3.3.2.3.1.1 "><p><span>音乐和视频文件</span></p></td>
        <td class="cellrowborder" valign="top" width="71.72%" headers="mcps1.3.3.3.2.3.1.2 "><p>*.wav, *.pcm, *.tta, *.flac, *.au, *.ape, *.tak, *.mp3, *.wv, *.wma, *.ogg, *.aac, *.flv, *.avi, *.wmv, *.asf, *.wmvhd, *.dat, *.vob, *.mpg, *.mpeg, *.3gp, *.3g2, *.mkv, *.rm, *.rmvb, *.mov, *.qt, *.ogv, *.oga, *.mod, *.asx, *.mp4, *.m4v</p></td>
       </tr>
       <tr>
        <td class="cellrowborder" valign="top" width="28.28%" headers="mcps1.3.3.3.2.3.1.1 "><p><span>图片文件</span></p></td>
        <td class="cellrowborder" valign="top" width="71.72%" headers="mcps1.3.3.3.2.3.1.2 "><p>*.png, *.bmp, *.jpg, *.tiff, *.gif, *.pcx, *.tga, *.exif, *.fpx, *.svg, *.psd, *.cdr, *.pcd, *.dxf, *.ufo, *.eps, *.ai, *.raw, *.tif</p></td>
       </tr>
       <tr>
        <td class="cellrowborder" valign="top" width="28.28%" headers="mcps1.3.3.3.2.3.1.1 "><p><span>PDF文件</span></p></td>
        <td class="cellrowborder" valign="top" width="71.72%" headers="mcps1.3.3.3.2.3.1.2 "><p>*.pdf</p></td>
       </tr>
       <tr>
        <td class="cellrowborder" valign="top" width="28.28%" headers="mcps1.3.3.3.2.3.1.1 "><p><span>网页文件</span></p></td>
        <td class="cellrowborder" valign="top" width="71.72%" headers="mcps1.3.3.3.2.3.1.2 "><p>*.xml, *.html, *.htm, *.shtml, *.asp, *.pl, *.cgi, *.php, *.mht, *.mhtml</p></td>
       </tr>
       <tr>
        <td class="cellrowborder" valign="top" width="28.28%" headers="mcps1.3.3.3.2.3.1.1 "><p><span>压缩文件</span></p></td>
        <td class="cellrowborder" valign="top" width="71.72%" headers="mcps1.3.3.3.2.3.1.2 "><p>*.rar, *.zip, *.gz, *.cab, *.tar, *.bz2, *.jar, *.iso, *.7z, *.tgz, *.z, *.tar.z</p></td>
       </tr>
       <tr>
        <td class="cellrowborder" valign="top" width="28.28%" headers="mcps1.3.3.3.2.3.1.1 "><p>自定义文件类型</p></td>
        <td class="cellrowborder" valign="top" width="71.72%" headers="mcps1.3.3.3.2.3.1.2 "><p>-</p></td>
       </tr>
      </tbody>
     </table>
    </div>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="Files-0010.html">备份文件集</a>
    </div>
   </div>
  </div>
 </body>
</html>